//
//  MonthMenulCollectionViewCell.m
//  AroundTheWorld
//
//  Created by dllo on 16/5/26.
//  Copyright © 2016年 IfelseGo an. All rights reserved.
//

#import "MonthMenulCollectionViewCell.h"

@implementation MonthMenulCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self doSometing];
    }
    return self;
}

-(void)doSometing{
    self.myLabel = [self addLabel];
}

- (UILabel *)addLabel{
    UILabel *label = [[UILabel alloc] init];
    label.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    label.backgroundColor = [UIColor whiteColor];
    label.textAlignment = NSTextAlignmentCenter;
    label.font = [UIFont systemFontOfSize:16];
    label.textColor = [UIColor colorWithRed:10 / 255.0 green:10 / 255.0 blue:10 / 255.0 alpha:1.0];
    label.layer.borderWidth = 1;
    label.layer.borderColor = [[UIColor colorWithRed:220 / 255.0 green:220 / 255.0 blue:220 / 255.0 alpha:1.0] CGColor];
    label.layer.masksToBounds = YES;
    label.layer.cornerRadius = 5;
    [self.contentView addSubview:label];
    return label;
}



@end
